package org.cuatrovientos.erp.model;


import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.validation.constraints.Min;
import org.hibernate.validator.constraints.Email;

public class Customer {


private int id;

@Size(min=2,max=50,message="{customer.name.error}")
private String name;

@Size(min=2,max=1000,message="{customer.address.error}")
private int address;

@Size(min=1,max=10,message="{customer.phone.error}")
private String phone;

@Email(message="{customer.email.error}")
private String email;

@NotNull(message="{customer.idcity.error}")
private int idcity;



public Customer() {

}



public Customer(int id, String name, int address, String phone, String email,
		int idcity) {
	super();
	this.id = id;
	this.name = name;
	this.address = address;
	this.phone = phone;
	this.email = email;
	this.idcity = idcity;
}



/**
 * @return the id
 */
public int getId() {
	return id;
}



/**
 * @param id the id to set
 */
public void setId(int id) {
	this.id = id;
}



/**
 * @return the name
 */
public String getName() {
	return name;
}



/**
 * @param name the name to set
 */
public void setName(String name) {
	this.name = name;
}



/**
 * @return the address
 */
public int getAddress() {
	return address;
}



/**
 * @param address the address to set
 */
public void setAddress(int address) {
	this.address = address;
}



/**
 * @return the phone
 */
public String getPhone() {
	return phone;
}



/**
 * @param phone the phone to set
 */
public void setPhone(String phone) {
	this.phone = phone;
}



/**
 * @return the email
 */
public String getEmail() {
	return email;
}



/**
 * @param email the email to set
 */
public void setEmail(String email) {
	this.email = email;
}



/**
 * @return the idcity
 */
public int getIdcity() {
	return idcity;
}



/**
 * @param idcity the idcity to set
 */
public void setIdcity(int idcity) {
	this.idcity = idcity;
}







}
